package com.marktotop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.marktotop.entity.business.ObserveRecord;
import com.marktotop.vo.business.ObserveVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
public interface ObserveRecordMapper extends BaseMapper<ObserveRecord> {

    /**
     * 根据注射时间和状态列表出谁在哪个地接种了哪个疫苗（）
     *
     * @param page
     * @param observeVO
     * @return
     */
    IPage<ObserveVO> getObservesByPage(Page<ObserveVO> page,@Param("observe") ObserveVO observeVO);


    /**
     * 根据接种id查询某一留观列表
     *
     * @param id
     * @return
     */
    ObserveVO selectOneObserveInfo(Long id);
}
